package com.hdu.dwh.exception;

import com.hdu.dwh.enums.HttpStatusEnum;
import lombok.Getter;
import lombok.RequiredArgsConstructor;

@Getter
@RequiredArgsConstructor
public class CustomException extends RuntimeException {

    private final HttpStatusEnum httpStatusEnum;

    public CustomException(String message, HttpStatusEnum httpStatusEnum) {
        super(message);
        this.httpStatusEnum = httpStatusEnum;
    }
}
